package com.kelp.codetoolkit.activity

import com.intellij.openapi.fileEditor.FileEditorManagerListener
import com.intellij.openapi.project.Project
import com.intellij.openapi.startup.ProjectActivity
import com.kelp.codetoolkit.listener.SpringConfigSelectionListener

/**
 * @author: liuyuebai
 * @date: 2025/9/8 15:34
 * @description:
 */
class SpringConfigStartupActivity: ProjectActivity {

    override suspend fun execute(project: Project) {
        project.messageBus.connect().subscribe(FileEditorManagerListener.FILE_EDITOR_MANAGER, SpringConfigSelectionListener(project))
    }
}